import {EntityId, PageQueryParams} from "kf-web-library";
import {JournalColumn} from "@/services";

export interface JournalSpecialColumnPageQueryParams extends Partial<PageQueryParams> {
  searchText?: string;
  ids?: EntityId[];
  enable?: boolean;
}

export interface JournalSpecialColumn {
  id: EntityId; //主键
  languageType: string; //语言类型
  name: string; //栏目名称
  introduction: string; //栏目简介
  createTime: string; //创建时间
  createUserId: number; //${column.comment}
  modifyTime: string; //修改时间
  modifyUserId: number; //${column.comment}
  journalColumnList: JournalColumn[]; //分期栏目
  enable: boolean;
}

export interface JournalSpecialColumn_Create {
  languageType: string; //语言类型
  name: string; //栏目名称
  introduction: string; //栏目简介
  journalColumnIdList: number[]; //关联栏目ID
}

export interface JournalSpecialColumn_Modify extends JournalSpecialColumn_Create {
  id: EntityId;
}

export interface JournalSpecialColumn_Patch extends Partial<JournalSpecialColumn_Modify> {
  id: EntityId;
}

